home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / unattended-upgrades.postrm < prev    next >
Text File  |  2008-10-13  |  1KB  |  52 lines

  1. #!/bin/sh
  2. #
  3. # see: dh_installdeb(1)
  4.  
  5. set -e
  6.  
  7. # summary of how this script can be called:
  8. #        * <postrm> `remove'
  9. #        * <postrm> `purge'
  10. #        * <old-postrm> `upgrade' <new-version>
  11. #        * <new-postrm> `failed-upgrade' <old-version>
  12. #        * <new-postrm> `abort-install'
  13. #        * <new-postrm> `abort-install' <old-version>
  14. #        * <new-postrm> `abort-upgrade' <old-version>
  15. #        * <disappearer's-postrm> `disappear' <overwriter>
  16. #          <overwriter-version>
  17. # for details, see http://www.debian.org/doc/debian-policy/ or
  18. # the debian-policy package
  19.  
  20.  
  21. case "$1" in
  22.     purge)
  23.     if [ -x "`which ucf 2>/dev/null`" ]; then
  24.         ucf --purge /etc/apt/apt.conf.d/20auto-upgrades
  25.     fi
  26.     rm -f /etc/apt/apt.conf.d/20auto-upgrades
  27.     ;;
  28.     
  29.     remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  30.     ;;
  31.  
  32.     *)
  33.         echo "postrm called with unknown argument \`$1'" >&2
  34.         exit 1
  35.     ;;
  36. esac
  37.  
  38. # dh_installdeb will replace this with shell code automatically
  39. # generated by other debhelper scripts.
  40.  
  41. # Automatically added by dh_installdebconf
  42. if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
  43.     . /usr/share/debconf/confmodule
  44.     db_purge
  45. fi
  46. # End automatically added section
  47.  
  48.  
  49. exit 0
  50.  
  51.  
  52.